package com.aliyun.messagemgt.dto.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author yangshaobo
 * @date 2021年10月14日
 */
@Data
public class BaseMessageSourceQuery extends PageQuery{

    @ApiModelProperty(value = "租户编码")
    private String tenantCode;

    @ApiModelProperty(value = "消息源编码")
    private String sourceCode;

    @ApiModelProperty(value = "消息源名称")
    private String sourceName;

    @ApiModelProperty(value = "场景编码")
    private String sceneCode;

    @ApiModelProperty(value = "场景名称")
    private String sceneName;

    @ApiModelProperty(value = "消息源编码或名称")
    private String sourceNameOrSourceCode;

    @ApiModelProperty(value = "场景编码或名称")
    private String sceneCodeOrSceneName;

    @ApiModelProperty(value = "是否启用状态 Y-启用 N-停用")
    private String isEnabled;

    @ApiModelProperty(value = "查询开始时间", name = "beginTime")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    @ApiModelProperty(value = "查询结束时间", name = "endTime")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "租户code列表", name = "tenantCodeList")
    private List<String> tenantCodeList;
}
